package org.nfIt.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.nfIt.dto.system.SysUserDto;
import org.nfIt.entity.system.SysUser;

import java.util.List;

/**
 * ClossName:SysUserMapper
 * Pakage:org.nfIt.mapper
 * Description
 *
 * 用户
 *
 *
 * @Author L
 * @Create 2024/6/17 20:18
 * @Version 2023.1.3
 */
@Mapper
public interface SysUserMapper {

    /**
     * 根据用户名查询用户信息
     * @param userName 用户名
     */
    SysUser selectUserInfoByUserName(String userName);

    /**
     * 分页查询用户
     * @param sysUserDto 条件
     */
    List<SysUser> findByPage(SysUserDto sysUserDto);

    /**
     * 添加用户
     * @param sysUser 实体
     */
    void saveSysUser(SysUser sysUser);

    /**
     * 修改用户
     * @param sysUser
     */
    void updateSysUser(SysUser sysUser);

    /**
     * 删除用户
     * @param userId id
     */
    void deleteById(Long userId);
}
